package com.communal.web.form;

import com.communal.model.User;

/**
 * Class for userInfoData holding <br>
 * @author Created by andrey.kuznetsov <br>
 * @author Last modified by $Author$ <br>
 * @author Last modified on $Date$ at revision $Revision$ <br>
 */
public class UserInfoForm {

	private Integer id;
	private String login;
	private String password;
	private String firstName;
	private String lastName;
	
	/**
	 * Constructor for user model <br>
	 * @param p_user - {@link IUser}
	 */
	public UserInfoForm(User p_user) {
		id = p_user.getId();
		login = p_user.getLogin();
		password = p_user.getPassword();
		firstName = p_user.getFirstName();
		lastName = p_user.getLastName();
	}
	
	/**
	 * Returns unique id of user
	 * @return {@link Integer};
	 */
	public Integer getId() {
		return id;
	}
	
	/**
	 * Sets unique id of user
	 * @param p_id - {@link Integer};
	 */
	public void setId(Integer p_id) {
		id = p_id;
	}
	
	/**
	 * Returns user login <br>
	 * @return {@link String};
	 */
	public String getLogin() {
		return login;
	}

	/**
	 * Sets user password
	 * @param p_login - {@link String};
	 */
	public void setLogin(String p_login) {
		login = p_login;
	}

	/**
	 * Returns user first name <br>
	 * @return {@link String};
	 */
	public String getFirstName() {
		return firstName;
	}

	/**
	 * Sets user first name <br>
	 * @param p_firstName - {@link String};
	 */
	public void setFirstName(String p_firstName) {
		firstName = p_firstName;
	}

	/**
	 * Returns user last name <br>
	 * @return {@link String};
	 */
	public String getLastName() {
		return lastName;
	}

	/**
	 * Sets user last name <br>
	 * @param p_lastName - {@link String};
	 */
	public void setLastName(String p_lastName) {
		lastName = p_lastName;
	}

	/**
	 * Returns password of user <br>
	 * @return {@link String};
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * Sets password for user <br>
	 * @param p_password - {@link String};
	 */
	public void setPassword(String p_password) {
		password = p_password;
	}
	
}
